﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;

namespace Tetris
{
    class Game
    {
        public void Drawfield(Canvas cv)
        {
            for (int i = 0; i < 10; i++)
            {
                for (int j = 0; j < 20; j++)
                {
                    Rectangle item = new Rectangle();
                    item.Stroke = new SolidColorBrush(Colors.LightBlue);
                    item.Fill = new SolidColorBrush(Colors.White);
                    item.Width = cv.ActualWidth/10;
                    item.Height = cv.ActualHeight/20;
                    double x, y;
                    x = cv.ActualWidth / 10;
                    y = cv.ActualHeight / 20;
                    Canvas.SetLeft(item, i*x);
                    Canvas.SetTop(item, j*y);
                    cv.Children.Add(item);
                }
            }
        }

        public void RotateTerto() 
        {
            
        }
    }
}
